9.8
CRITICAL CVSS 3.1
CVE-2026-21622
Password Reset Tokens Do Not Expire
Description

Insufficient Session Expiration vulnerability in hexpm hexpm/hexpm ('Elixir.Hexpm.Accounts.PasswordReset' module) allows Account Takeover. Password reset tokens generated via the "Reset your password" flow do not expire. When a user requests a password reset, Hex sends an email containing a reset link with a token. This token remains valid indefinitely until used. There is no time-based expiration enforced. If a user's historical emails are exposed through a data breach (e.g., a leaked mailbox archive), any unused password reset email contained in that dataset could be used by an attacker to reset the victim's password. The attacker does not need current access to the victim's email account, only access to a previously leaked copy of the reset email. This vulnerability is associated with program files lib/hexpm/accounts/password_reset.ex and program routines 'Elixir.Hexpm.Accounts.PasswordReset':can_reset?/3. This issue affects hexpm: from 617e44c71f1dd9043870205f371d375c5c4d886d before bb0e42091995945deef10556f58d046a52eb7884.

INFO

Published Date :

March 5, 2026, 10:16 p.m.

Last Modified :

March 19, 2026, 7:58 p.m.

Remotely Exploit :

Yes !

Source :

6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Affected Products

The following products are affected by CVE-2026-21622 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Hexpm hexpm
1 Sixcolors hexpm
1 Hex hexpm
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 CRITICAL [email protected]
CVSS 4.0 CRITICAL 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
CVSS 4.0 CRITICAL 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Solution
Implement time-based expiration for password reset tokens to prevent account takeover.
  • Implement time-based expiration for password reset tokens.
  • Revoke existing tokens if they are not yet used.
  • Review and secure stored user credentials.
  • Monitor for unusual password reset requests.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-21622.

URL Resource
https://github.com/hexpm/hexpm/commit/bb0e42091995945deef10556f58d046a52eb7884 Patch
https://github.com/hexpm/hexpm/security/advisories/GHSA-6r94-pvwf-mxqm Patch Vendor Advisory
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-21622 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-21622 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-21622 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-21622 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Reanalysis by [email protected]

    Mar. 19, 2026

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:sixcolors:hexpm:*:*:*:*:*:*:*:* versions up to (excluding) 2026-03-05 OR *cpe:2.3:a:hex:hexpm:*:*:*:*:*:*:*:* versions from (including) 2025-10-01 up to (excluding) 2026-03-05
  • Initial Analysis by [email protected]

    Mar. 17, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Added CPE Configuration OR *cpe:2.3:a:sixcolors:hexpm:*:*:*:*:*:*:*:* versions up to (excluding) 2026-03-05
    Added Reference Type EEF: https://github.com/hexpm/hexpm/commit/bb0e42091995945deef10556f58d046a52eb7884 Types: Patch
    Added Reference Type EEF: https://github.com/hexpm/hexpm/security/advisories/GHSA-6r94-pvwf-mxqm Types: Patch, Vendor Advisory
  • New CVE Received by 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

    Mar. 05, 2026

    Action Type Old Value New Value
    Added Description Insufficient Session Expiration vulnerability in hexpm hexpm/hexpm ('Elixir.Hexpm.Accounts.PasswordReset' module) allows Account Takeover. Password reset tokens generated via the "Reset your password" flow do not expire. When a user requests a password reset, Hex sends an email containing a reset link with a token. This token remains valid indefinitely until used. There is no time-based expiration enforced. If a user's historical emails are exposed through a data breach (e.g., a leaked mailbox archive), any unused password reset email contained in that dataset could be used by an attacker to reset the victim's password. The attacker does not need current access to the victim's email account, only access to a previously leaked copy of the reset email. This vulnerability is associated with program files lib/hexpm/accounts/password_reset.ex and program routines 'Elixir.Hexpm.Accounts.PasswordReset':can_reset?/3. This issue affects hexpm: from 617e44c71f1dd9043870205f371d375c5c4d886d before bb0e42091995945deef10556f58d046a52eb7884.
    Added CVSS V4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
    Added CWE CWE-613
    Added Reference https://github.com/hexpm/hexpm/commit/bb0e42091995945deef10556f58d046a52eb7884
    Added Reference https://github.com/hexpm/hexpm/security/advisories/GHSA-6r94-pvwf-mxqm
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.